package com.heima.estatemanagement.mapper;

import com.github.pagehelper.Page;
import com.heima.estatemanagement.domain.TbHouse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【tb_house(房屋表)】的数据库操作Mapper
* @createDate 2023-02-01 14:42:45
* @Entity com.heima.estatemanagement.domain.TbHouse
*/
@Repository
public interface TbHouseMapper extends Mapper<TbHouse> {

    public List<TbHouse> selectAll();

    public TbHouse finByCommunityId(int community_id);

    public Page<TbHouse> search(Map searchMap);

    public int add(TbHouse House);

    public int update(TbHouse house);

    public boolean delById(int id);

    public int parkingCount(Map searchMap);


}




